package com.dgut.edu.cn.design.mode.filterchain.filter;

import com.dgut.edu.cn.design.mode.filterchain.dto.RuleFilterResVo;

/**
 * @description: 规则过滤接口
 * @author: hongbin.zheng
 * @create: 2023-08-10 18:41
 **/
public interface RuleFilter<T> {
	/**
	 * 执行过滤响应结果
	 * @return
	 */
	RuleFilterResVo doFilter(T entity) throws Exception;
	/**
	 * 过滤链名字
	 * @return
	 */
	String name();

}
